<?php 
/* SVN FILE: $Id$ */
/* Foto Test cases generated on: 2009-10-22 16:26:17 : 1256228777*/
App::import('Model', 'Foto');

class FotoTestCase extends CakeTestCase {
	var $Foto = null;
	var $fixtures = array('app.foto');

	function startTest() {
		$this->Foto =& ClassRegistry::init('Foto');
	}

	function testFotoInstance() {
		$this->assertTrue(is_a($this->Foto, 'Foto'));
	}

	function testFotoFind() {
		$this->Foto->recursive = -1;
		$results = $this->Foto->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Foto' => array(
			'id'  => 1,
			'nome'  => 'Lorem ipsum dolor sit amet',
			'descricao'  => 'Lorem ipsum dolor sit amet',
			'caminho'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>